package vn.cent.games.findnumber.main;

import com.smartfoxserver.v2.core.ISFSEvent;
import com.smartfoxserver.v2.exceptions.SFSException;
import com.smartfoxserver.v2.extensions.BaseServerEventHandler;

/**
 * UserJoinedEventHandler: manage a user joined event
 * 
 * @author TV.Vinh
 * @version 1.0
 */
public class UserJoinedEventHandler extends BaseServerEventHandler{

	/**
	 * Handle user event when user joins a game room
	 * 
	 * @param event The received event
	 */
	@Override
	public void handleServerEvent(ISFSEvent evt) throws SFSException {
		// TODO ...
//		Room room = (Room) evt.getParameter(SFSEventParam.ROOM);
//		User user = (User) evt.getParameter(SFSEventParam.USER);
		
//		trace("FindNumber.v1: user " + user.getName() + " has joined room: " + room.getName());
	}
}
